package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient(value = "cart-service",configuration = DefaultFeignConfig.class)
public interface CartFeign {
    @DeleteMapping("/carts")
    void removeByItemIds(@RequestParam("ids")Set<Long> itemIds);
}
